package com.ocm.commerceinteraction.model;

/**
 * Created by Curry on 2016-5-7.
 */
public class UserModel implements  Comparable<UserModel>{

    /**
     * 昵称首字母
     */
    private String initialLetter;
    /**
     * 用户头像
     */
    private String avatar;

    private boolean isSelect;

    private String eid;
    private String username;
    private String nick;

    public String getInitialLetter() {
        return initialLetter;
    }

    public void setInitialLetter(String initialLetter) {
        this.initialLetter = initialLetter;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    @Override
    public int compareTo(UserModel another) {
        return getInitialLetter().compareTo(another.getInitialLetter());
    }
}
